from queue import Queue

queue = Queue(5)
for i in range(0):
    queue.put(i)

print('当前队列大小为：',queue.qsize())
#
# for j in range(5):
#     try:
#         print(queue.get(block=False))
#     except:
#         print("队列已经空了")
#         break
if queue.full():
    print('队列是满的')
if queue.empty():
    print('队列是空的')

